package origin.servlet;


import java.sql.SQLException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

import origin.util.Config;
import origin.util.MapConfig;
import origin.util.MapConstants;

public class StartupServlet extends HttpServlet {

	/**
	 * Initialization of the servlet. <br>
	 *
	 * @throws ServletException if an error occurs
	 */
	public void init() throws ServletException {
		Config.APP_PATH = getServletContext().getRealPath("");
		MapConfig.APP_PATH = getServletContext().getRealPath("");
		
		//warm up
		try {
			MapConfig mc = MapConfig.getInstance();
		} catch (SQLException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}
	}

}
